#define _CRT_SECURE_NO_WARNINGS 1

#include<iostream>
#include<string>
using namespace std;

int main()
{
    string a[10] = { "ling","yi","er","san","si","wu","liu","qi","ba","jiu" };
    int b[20] = { 0 };
    int num = 0;
    int count = 0;
    scanf("%d", &num);
    if (num == 0)
        cout << a[num];
    if (num < 0)
    {
        cout << "fu ";
        num = -num;
    }
    int i = 0;
    while (num)
    {
        b[i] = num % 10;
        num = num / 10;
        count++;
        i++;
    }
    for (i = count - 1; i >= 0; i--)
    {
        cout << a[b[i]];
        if (i != 0)
            printf(" ");
    }
    return 0;
}